package com.amgl.amupush.news;

import com.amgl.amupush.base.BasePresenter;
import com.amgl.amupush.base.BaseView;
import com.amgl.amupush.data.News;

import java.util.List;

/**
 * Created by amglh on 2016/8/10.
 */
public interface NewsContract {
    interface NewsView extends BaseView<Presenter> {
        void showNewData(List<News> newsList);

        void showMoreData(List<News> newsList);

        void isEndPage();

        void showError(String message);
    }

    interface Presenter extends BasePresenter {
        void loadNews();

        void loadMore();

        boolean isEndPage();

        int getPageSize();
    }
}
